package com.gnerv.cms.dto;

import com.gnerv.cms.entity.Catalog;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * <p>
 * CMS-栏目表
 * </p>
 *
 * @author Gnerv LiGen
 * @since 2019-10-10
 */
@Data
public class CatalogSaveDTO {

    private String ukId;
    private String parentId;
    private String code;
    private String name;
    private Integer status;
    private Integer sort;

    private String siteId;

    public Catalog convert() {
        Catalog catalog = new Catalog();
        BeanUtils.copyProperties(this, catalog);
        return catalog;
    }
}
